package org.gruposp2p.dnie.client.ui.panel;

import org.gruposp2p.dnie.client.ui.widget.dynatable.UploadedDocumentsWidget;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class UploadedDocumentsPanel extends Composite {

    private static UploadedDocumentsPanelUiBinder uiBinder = GWT
                    .create(UploadedDocumentsPanelUiBinder.class);

    interface UploadedDocumentsPanelUiBinder extends
            UiBinder<Widget, UploadedDocumentsPanel> {
    }

    @UiField VerticalPanel contentPanel;
    UploadedDocumentsWidget documentsToSign;
	
    public UploadedDocumentsPanel() {
        initWidget(uiBinder.createAndBindUi(this));
        contentPanel.setWidth("991px");
    }

    public UploadedDocumentsPanel getInstance () {
        if (documentsToSign == null) {
            documentsToSign = new UploadedDocumentsWidget(5);
            contentPanel.add(documentsToSign);
        }
        return this;
    }
	
}
